import { pubRequire, pubRequireFree, downFile } from '@utils/appletPublic.js'
const base = '/backflow/internal-user'
export function userInfo(params, callBack, errBack) {
  return pubRequire('get', `${base}`, params, callBack, errBack)
}
// 删除用户
export function deleteInfo(id, params, callBack, errBack) {
  return pubRequire('delete', `${base}/${id}`, params, callBack, errBack)
}
// 添加用户
export function addUser(params, callBack, errBack) {
  return pubRequire('post', `${base}`, params, callBack, errBack)
}
// 用户导入模板下载
export function exportMb() {
  return '/backflow/internal-user/download'
}

// 用户导入
export function userImport() {
  return `${base}/import`
}

// 根据工号获取信息
export function backCode(code, params, callBack, errBack) {
  return pubRequire('get', `${base}/code/${code}`, params, callBack, errBack)
}
